var host = '0.0.0.0';
var port = '8000';
var cors_proxy = require('cors-anywhere');
var http = cors_proxy.createServer({
    originWhitelist: [], // Allow all origins
    requireHeader: ['origin', 'x-requested-with'],
    removeHeaders: ['cookie', 'cookie2'],
handleInitialRequest: (req, res, location) => {
console.log(req.rawHeaders, location.href, req.method)
}
}).listen(port, host, function() {
    console.log('Running CORS Anywhere on ' + host + ':' + port);
});


console.log(http);
